package admin

import database "hft/Database"

type RoomSwiper struct {
	database.Base
	Category     int    `json:"category" gorm:"comment:轮播图类型;"`
	Cover        string `json:"cover" gorm:"type:text"`
	CategoryName string `json:"categoryName,omitempty"`
	LouPanId     int    `json:"louPanId,omitempty"`
	LouPanName   string `json:"louPanName"`
	RoomName     string `json:"roomName"`
	RoomID       int    `json:"roomId"`
	Url          string `json:"url" gorm:"type:text" gorm:"comment:地址"`
	GoUrl        string `json:"goUrl"`
}

func (RoomSwiper) TableName() string {
	return database.TableNameFormat("room_swiper")
}
